#include<stdio.h>
#include<stdlib.h>

int main(int argc,char **argv){
    if(argc==3){
                char* srcfile=argv[1];
                char* dstfile=argv[2];
                FILE *fp1=fopen(srcfile,"r");
                if(fp1==0) return -1;
                FILE *fp2=fopen(dstfile,"w");
                if(fp2==0) return -1;
                char item;
                while((item=fgetc(fp1))!=EOF){
                                  fputc(item,fp2);
                                  }
                fputc(item,fp2);
                fclose(fp1);
                fclose(fp2);
                }
                return 0;
    }
